<template>
  <div class="evalEdit">
    <ul>
      <li>
        <img src="../../../static/mine/good.png" alt="">
        <div>好评</div>
      </li>
      <li>
        <img src="../../../static/mine/commonly.png" alt="">
        <div>中评</div>
      </li>
      <li>
        <img src="../../../static/mine/bad.png" alt="">
        <div>差评</div>
      </li>
    </ul>
    <textarea class="textarea" @blur="bindTextAreaBlur" placeholder="在这里写下你对这个商品的评价吧" />
    <div class="pic">
      <img src="../../../static/mine/camera.png" alt="">
    </div>
    <div class="bottom">
      <div class="left" @click="radioChange">
        <radio class="radio" color="#c85051" :checked="checked"></radio>
        <span>匿名</span>
      </div>
      <div class="right">你的评价能帮助其他小伙伴哟</div>
    </div>
    <div class="sublim">发表评价</div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      checked: true
    }
  },
  methods: {
    bindTextAreaBlur(e) {
      console.log(e.mp.detail.value)
    },
    radioChange() {
      this.checked = !this.checked
    }
  }
}
</script>
<style lang="scss" scoped>
.evalEdit {
  padding: 18rpx 18rpx 50rpx;
  ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1rpx solid #eee;
    li {
      padding: 40rpx;
      img {
        margin: 0 auto;
        width: 76rpx;
        height: 76rpx;
      }
      div {
        height: 50rpx;
        line-height: 50rpx;
        font-size: 32rpx;
        text-align: center;
      }
    }
  }
}
.textarea {
  margin-top: 40rpx;
  line-height: 40rpx;
  width: 100%;
  height: 200rpx;
  font-size: 28rpx;
}
.pic {
  padding-bottom: 30rpx;
  border-bottom: 1rpx solid #eee;
  img {
    height: 166rpx;
    width: 166rpx;
  }
}
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20rpx;
  height: 50rpx;
  .left {
    color: #666;
    font-size: 32rpx;
    .radio {
      transform: scale(0.7);
    }
    span {
      vertical-align: middle;
    }
  }
  .right {
    color: #999;
    font-size: 24rpx;
  }
}
.sublim {
  margin-top: 50rpx;
  border-radius: 20rpx;
  height: 74rpx;
  line-height: 74rpx;
  color: #fff;
  font-size: 32rpx;
  text-align: center;
  background-color: #c78650;
}
</style>

